#include "StdAfx.h"
#include "MainMenuCon.h"
#include "Util/UtilInclude.h"
#include "CommandDef.h"
#include "Workout.h"



CMainMenuCon::CMainMenuCon(HWND hWnd):CContainer(hWnd)
{
	m_pChbtnMute = NULL;
}

CMainMenuCon::~CMainMenuCon(void)
{
}

BOOL CMainMenuCon::InitControls(DWORD dwData)
{
	LANGUAGE_DECLARE;
	FONT_DECLARE;
	if(!m_config.Init(L"TMAINMENU.xml"))
	{
		g_App.ShowMsgBox(CMD_MSGBOX_OK,L"",LAN_GETTEXT(Msg_ResError));
		return FALSE;
	}

	BOOL bFromDll	= m_config.IsResFromDll();
	wstring str		= m_config.GetImage();		
	HBITMAP hBitmap = CUtil::LoadBitmapEx(str.c_str(),m_config.m_bFromDll);
	SetBackGnd(hBitmap);

	SetRect( m_config.GetRect() );


	BtnParam btnInfo;
	BtnParam btnEbookInfo;	
	TextParam txtInfo;
	CBmpBtn*	pBtn = NULL;
	CText*		pTxt = NULL;

	return bRet;
}

void CMainMenuCon::OnCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
{

}
